{include file="public/header" /}
<div class="index_html houtai">
    {include file="public/second_header" /}


<!-- 地下内容的开始 -->
<div class="backgroud_content ">
    <!-- 左侧的开始 -->
    {include file="public/nav" /}
    <!-- 左侧的结束 -->

    <!-- 右侧的开始 -->
    <div class="right_bar jianchajilu hou_huanzheguanli  hou_member huanzhexinxi">
        {include file="public/go_back" /}
        <div class="jcjl_detail">
            <div class="top_dec">
                <span class="theme">患者信息</span>
                {if condition="empty($type)"}
                <a  class="a-post btn-permission" data-url="patient/del_patient"  post-msg="你确定要删除吗"   post-url="{:url('patient/del_patient',array('id'=>$patient['id']))}">
                   删除
                </a>

                <a data-url="patient/edit_patient"  href="{:url('patient/edit_patient',array('id'=>$patient['id']))}" class="btn-permission">编辑资料</a>

                <a  data-url="record/add_record" href="{:url('record/add_record',array('id'=>$patient['id']))}" class="add_new btn-permission">新建检查记录</a>
                {/if}

                <div class="member_box">
                    <div class="img_box">
                        {switch name="$patient['sex']"}
                        {case value="1"}
                        <img src="__STATIC__/index/imgs/head_nan.jpg" alt="">
                        {/case}

                        {case value="2"}
                        <img src="__STATIC__/index/imgs/head_nv.jpg" alt="">
                        {/case}
                        {/switch}
                    </div>
                    <div class="data_msg">
                        <ul>

                            <li>
                                <strong class="name">{$patient['name']}</strong>
                                <strong>{$patient['sex']|get_sex_str}</strong>
                                <strong>{$patient['birth']|getAge}岁</strong>
                            </li>
                            <li>
                                <span>身份证号：</span>
                                <strong>{$patient['document_num']}</strong>
                            </li>

                        </ul>
                    </div>
                </div>
            </div>
            <div class="data">
                <!-- 下面的   列表 开始  -->
                <div class="liebiao">
                    <div class="liebiao_dec">
                        <div class="liebiao_top">
                            <strong class="first">拍摄类型</strong>
                            <strong class="second">拍摄部位</strong>
                            <strong class="third">检查结果</strong>
                            <strong class="forth">拍摄时间</strong>
                        </div>
                        <ul>

                            {foreach $case_list as $case}
                            <li>
                                <a href="{:url('record/check_detail',array('id'=>$case['id']))}">
                        <span class="first">
								<em>{$case['patient_case_type_name']}</em>
							</span>
                        <span class="second">
								<em>

                                    {foreach name="$case['patient_part_lat']" item="svo"}
                                    {$svo['part'] ?? ''}/{$svo['lat']?? ''}
                                    <br>
                                    {/foreach}
                                </em>
							</span>
                                    <span class="third">{$case['check_result']} </span>
                             <span class="forth">
								<em>{$case['check_time']|strtotime|date='Y-m-d',###}</em>
							</span>
                                </a>
                            </li>
                            {/foreach}




                        </ul>
                    </div>
                </div>
                <!-- 列表的结束 -->

            </div>
        </div>
    </div>
    <!-- 右侧的结束 -->
</div>
</div>
{include file="public/footer" /}